package ru.payment.wm.impl.response;

import ru.payment.wm.Operation;
import ru.payment.wm.X3Response;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * User: sergey
 * Date: 14.04.2009
 * Time: 20:47:42
 */
public class X3ResponseImpl extends AbstractWebMoneyResponse implements X3Response {

  private static final long serialVersionUID = -8395115087547123976L;
  private List<Operation> operationList = new ArrayList<Operation>();

  public X3ResponseImpl() {
    super();
  }

  public List<Operation> getOperationList() {
    return operationList;
  }

  @Override
  public String toString() {
    String sz = super.toString()+"\n-- operation list ["+getOperationList().size()+"] --";
    for (Operation op : operationList) {
      sz = sz + "\n" + op + "\n---";
    }
    return sz;
  }

}
